package cn.bs.domain.vo;

import cn.bs.domain.pojo.CommentPOJO;

import java.util.Date;
import java.util.List;

public class PostInfoVO {
    private Integer id;//贴子id
    private Integer userId;//作者id
    private String userName;//作者名
    private String title;//标题
    private String content;//内容
    private String image;//图片
    private Integer likes;//点赞数
    private Date date;//发布时间
    private Integer isLike;//是否点赞

    private List<CommentPOJO> commentList;//该条帖子下的评论列表

    public PostInfoVO() {
    }

    public PostInfoVO(Integer id, Integer userId, String userName, String title, String content,
                      String image, Integer likes, Date date,
                      List<CommentPOJO> commentList, Integer isLike) {
        this.id = id;
        this.userId = userId;
        this.userName = userName;
        this.title = title;
        this.content = content;
        this.image = image;
        this.likes = likes;
        this.date = date;
        this.commentList = commentList;
        this.isLike = isLike;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public List<CommentPOJO> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<CommentPOJO> commentList) {
        this.commentList = commentList;
    }

    public Integer getIsLike() {
        return isLike;
    }

    public void setIsLike(Integer isLike) {
        this.isLike = isLike;
    }
}
